package fun.rockchen.service.interfaceService;

import fun.rockchen.bean.AddTaskEntity;
import fun.rockchen.bean.MapTaskEntity;
import fun.rockchen.bean.Task;
import fun.rockchen.bean.TaskTimeEntity;
import org.springframework.http.ResponseEntity;

import java.text.ParseException;

/**
 * @author Rock Chen
 * @Description:
 * @date 2023/10/16 11:31
 */

public interface TaskService {
    ResponseEntity<?> addTask(AddTaskEntity addTaskEntity);

    ResponseEntity<?> deleteTask(String taskId);

    ResponseEntity<?> updateTask(Task task);

    ResponseEntity<?> getStatusTask(MapTaskEntity mapTaskEntity);

    ResponseEntity<?> getTodayTask(MapTaskEntity mapTaskEntity);

    ResponseEntity<?> getTaskByTime(MapTaskEntity mapTaskEntity) throws ParseException;

    ResponseEntity<?> getTaskByState(MapTaskEntity mapTaskEntity);

    ResponseEntity<?> getTaskById(String id);

    ResponseEntity<?> changeTaskIntoCancel(MapTaskEntity mapTaskEntity);

    ResponseEntity<?> changeTaskIntoPending(MapTaskEntity mapTaskEntity);

    ResponseEntity<?> getTaskByDate(MapTaskEntity mapTaskEntity);

    ResponseEntity<?> getTaskTotalTime(TaskTimeEntity taskTimeEntity);
}
